package com.wing.sell.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.sell.model.entity.AgentDue;
import com.wing.sell.model.request.AgentDueForm;
import com.wing.sell.model.response.AgentDueVO;

import java.util.List;
import java.util.Map;

/**
 * 代理经销商尽调记录表-Service
 *
 * @author
 */
public interface AgentDueService extends IService<AgentDue> {

    /**
     * 添加
     *
     * @param agentDueForm
     * @return
     */
    void add(AgentDueForm agentDueForm) throws  Exception;

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<AgentDueVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<AgentDueVO> pageList4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    AgentDueVO get4appById(Long id);


    /**
     * 修改尽调记录
     * @param agentDueForm
     * @throws Exception
     */
    public void update(AgentDueForm agentDueForm) throws  Exception;

    /**
     * 审核
     * @param agentDueForm
     * @throws Exception
     */
    public void check(AgentDueForm agentDueForm) throws Exception;

}
